﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Exam_ResultsPublish 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Exam_ResultsPublish : Entity 
	{
		public TB_Exam_ResultsPublish():base("TB_Exam_ResultsPublish") {   
        }

		#region Model
		private string _ExamPlaceNO;
		private string _SpecialityKindsNO;
		private int _ExamLevel;
		private string _IsIn;
		private string _IsOut;
		private DateTime? _CreatTime;
		private string _Remartk1;
		private string _Remartk2;
		private string _Remartk3;
		private string _Remartk4;
		private string _Remartk5;
		private string _Remartk6;
		/// <summary>
		/// 
		/// </summary>
		public string ExamPlaceNO
		{
			get{ return _ExamPlaceNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamPlaceNO,_ExamPlaceNO,value);
				this._ExamPlaceNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string SpecialityKindsNO
		{
			get{ return _SpecialityKindsNO; }
			set
			{
				this.OnPropertyValueChange(_.SpecialityKindsNO,_SpecialityKindsNO,value);
				this._SpecialityKindsNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int ExamLevel
		{
			get{ return _ExamLevel; }
			set
			{
				this.OnPropertyValueChange(_.ExamLevel,_ExamLevel,value);
				this._ExamLevel=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsIn
		{
			get{ return _IsIn; }
			set
			{
				this.OnPropertyValueChange(_.IsIn,_IsIn,value);
				this._IsIn=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsOut
		{
			get{ return _IsOut; }
			set
			{
				this.OnPropertyValueChange(_.IsOut,_IsOut,value);
				this._IsOut=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreatTime
		{
			get{ return _CreatTime; }
			set
			{
				this.OnPropertyValueChange(_.CreatTime,_CreatTime,value);
				this._CreatTime=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk1
		{
			get{ return _Remartk1; }
			set
			{
				this.OnPropertyValueChange(_.Remartk1,_Remartk1,value);
				this._Remartk1=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk2
		{
			get{ return _Remartk2; }
			set
			{
				this.OnPropertyValueChange(_.Remartk2,_Remartk2,value);
				this._Remartk2=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk3
		{
			get{ return _Remartk3; }
			set
			{
				this.OnPropertyValueChange(_.Remartk3,_Remartk3,value);
				this._Remartk3=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk4
		{
			get{ return _Remartk4; }
			set
			{
				this.OnPropertyValueChange(_.Remartk4,_Remartk4,value);
				this._Remartk4=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk5
		{
			get{ return _Remartk5; }
			set
			{
				this.OnPropertyValueChange(_.Remartk5,_Remartk5,value);
				this._Remartk5=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remartk6
		{
			get{ return _Remartk6; }
			set
			{
				this.OnPropertyValueChange(_.Remartk6,_Remartk6,value);
				this._Remartk6=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamLevel};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamLevel,
				_.IsIn,
				_.IsOut,
				_.CreatTime,
				_.Remartk1,
				_.Remartk2,
				_.Remartk3,
				_.Remartk4,
				_.Remartk5,
				_.Remartk6};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._ExamLevel,
				this._IsIn,
				this._IsOut,
				this._CreatTime,
				this._Remartk1,
				this._Remartk2,
				this._Remartk3,
				this._Remartk4,
				this._Remartk5,
				this._Remartk6};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
			this._ExamLevel = DataUtils.ConvertValue<int>(reader["ExamLevel"]);
			this._IsIn = DataUtils.ConvertValue<string>(reader["IsIn"]);
			this._IsOut = DataUtils.ConvertValue<string>(reader["IsOut"]);
			this._CreatTime = DataUtils.ConvertValue<DateTime?>(reader["CreatTime"]);
			this._Remartk1 = DataUtils.ConvertValue<string>(reader["Remartk1"]);
			this._Remartk2 = DataUtils.ConvertValue<string>(reader["Remartk2"]);
			this._Remartk3 = DataUtils.ConvertValue<string>(reader["Remartk3"]);
			this._Remartk4 = DataUtils.ConvertValue<string>(reader["Remartk4"]);
			this._Remartk5 = DataUtils.ConvertValue<string>(reader["Remartk5"]);
			this._Remartk6 = DataUtils.ConvertValue<string>(reader["Remartk6"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
			this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
			this._ExamLevel = DataUtils.ConvertValue<int>(row["ExamLevel"]);
			this._IsIn = DataUtils.ConvertValue<string>(row["IsIn"]);
			this._IsOut = DataUtils.ConvertValue<string>(row["IsOut"]);
			this._CreatTime = DataUtils.ConvertValue<DateTime?>(row["CreatTime"]);
			this._Remartk1 = DataUtils.ConvertValue<string>(row["Remartk1"]);
			this._Remartk2 = DataUtils.ConvertValue<string>(row["Remartk2"]);
			this._Remartk3 = DataUtils.ConvertValue<string>(row["Remartk3"]);
			this._Remartk4 = DataUtils.ConvertValue<string>(row["Remartk4"]);
			this._Remartk5 = DataUtils.ConvertValue<string>(row["Remartk5"]);
			this._Remartk6 = DataUtils.ConvertValue<string>(row["Remartk6"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Exam_ResultsPublish");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO","TB_Exam_ResultsPublish","ExamPlaceNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO","TB_Exam_ResultsPublish","SpecialityKindsNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamLevel = new Field("ExamLevel","TB_Exam_ResultsPublish","ExamLevel");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsIn = new Field("IsIn","TB_Exam_ResultsPublish","IsIn");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsOut = new Field("IsOut","TB_Exam_ResultsPublish","IsOut");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreatTime = new Field("CreatTime","TB_Exam_ResultsPublish","CreatTime");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk1 = new Field("Remartk1","TB_Exam_ResultsPublish","Remartk1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk2 = new Field("Remartk2","TB_Exam_ResultsPublish","Remartk2");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk3 = new Field("Remartk3","TB_Exam_ResultsPublish","Remartk3");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk4 = new Field("Remartk4","TB_Exam_ResultsPublish","Remartk4");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk5 = new Field("Remartk5","TB_Exam_ResultsPublish","Remartk5");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remartk6 = new Field("Remartk6","TB_Exam_ResultsPublish","Remartk6");
		}
		#endregion


	}
}

